class LiveLoginEntity {
  String? appToken;
  Auth? auth;
  String? userExtension;

  LiveLoginEntity({this.appToken, this.auth, this.userExtension});

  LiveLoginEntity.fromJson(Map<String, dynamic> json) {
    appToken = json['appToken'];
    auth = json['auth'] != null ? new Auth.fromJson(json['auth']) : null;
    userExtension = json['userExtension'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['appToken'] = this.appToken;
    if (this.auth != null) {
      data['auth'] = this.auth!.toJson();
    }
    data['userExtension'] = this.userExtension;
    return data;
  }
}

class Auth {
  String? nonce;
  String? role;
  int? timestamp;
  String? userId;

  Auth({this.nonce, this.role, this.timestamp, this.userId});

  Auth.fromJson(Map<String, dynamic> json) {
    nonce = json['nonce'];
    role = json['role'];
    timestamp = json['timestamp'];
    userId = json['userId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['nonce'] = this.nonce;
    data['role'] = this.role;
    data['timestamp'] = this.timestamp;
    data['userId'] = this.userId;
    return data;
  }
}
